#ifndef INTEREST_SWAP_H
#define INTEREST_SWAP_H

#include <vector>

class InterestSwap {
private:
    int no_periods;
    double fixed_rate;
    int long_short;

    // relative to number of days from today where today is defined by the data input for the yield curve
    int start_date;
    double inception;
    int amortize;

    std::vector<double> date;
    std::vector<double> floating_rate;
    std::vector<double> discount_rate;
    std::vector<double> net_cash_flow;
    std::vector<double> notional;

public:
    InterestSwap(char* input_file);
    double compute();
    double get_forward_rate(double date);
    double get_discount_rate(double factor);
    void print_debug();
 //   ~InterestSwap();

};

#endif
